package com.example.demo.mapper;

import com.baomidou.mybatisplus.core.conditions.Wrapper;
import com.baomidou.mybatisplus.core.mapper.BaseMapper;
import com.baomidou.mybatisplus.core.toolkit.Constants;
import com.baomidou.mybatisplus.extension.plugins.pagination.Page;
import com.example.demo.entity.Blog;
import org.apache.ibatis.annotations.Param;
import org.apache.ibatis.annotations.Select;

import java.util.List;

public interface Blogmapper extends BaseMapper<Blog> {
   // @Select(value = "SELECT * FROM blog s INNER JOIN tag a  ON s.tag_ids = a.id INNER JOIN TYPE t ON s.type_id = t.id")
//List<Blog> selectAll(Integer PageIndex,Integer PageSize);
    Page<Blog> selectAka(Page<Blog> page,@Param("title") String title,@Param("type_id")Integer type_id);
 Page<Blog> selectA(Page<Blog> page,int typeId,int tagIds);
    Blog selectToid(int id);
    int sel(int id);
    int TagselectByia(int id);
 List<Blog> recommend();
    //日期分类
    List<Blog> selectByU();
    int countasa();

    List<Integer> selectpp();
    List<Blog> selectNf(int nf);
    //前台单查
    Blog slsct(Long id);
    Page<Blog> selectAkaa(Page<Blog> page,@Param("title") String title);


}
